<template>
    <div>
        <h3><slot /></h3>
        <p v-for="(v,i) in label" :key="i">
            {{ v }}
            <ipt v-model="input[i]" />%
        </p>
    </div>
</template>

<script>
export default {
    components: {
    },
    props: {
        title: String,
        value: Array
    },
    data () {
        return {
            input: [],
            label: ['创业者', '投资人', '服务商', '上班族', '在校生']
        }
    },
    computed: {

    },
    watch: {
        input: {
            deep: true,
            handler (value) {
                this.$emit('update:value', value)
            }
        },
        value: {
            deep: true,
            handler (value) {
                this.input = value
            }
        }
    },
    methods: {

    }
}
</script>

<style scoped lang="stylus">
@import '../styl/public.styl'
</style>
